//
//  UnreadMessageModel.h
//  XV
//
//  Created by apple on 8.11.19.
//  Copyright © 2019 XR. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

//IM未读消息model
@interface UnreadMessageModel : NSObject<NSCoding>

//未读消息
@property (nonatomic,assign) NSInteger sessionUnreadCount;
//系统未读消息
@property (nonatomic,assign) NSInteger systemUnreadCount;
//自定义系统未读消息
@property (nonatomic,assign) NSInteger customSystemUnreadCount;

//未读消息数量
-(NSInteger)getUnreadCount;


//获取IM未读消息model(用户标识，如果为nil则使用默认)
+(UnreadMessageModel*)read:(NSString*)uid;

//保存IM未读消息
-(void)write:(NSString*)uid;

//删除IM未读消息(用户标识，如果为nil则使用默认)
+(void)remove:(NSString*)uid;

@end

NS_ASSUME_NONNULL_END
